package com.grade;

public class Grade {
    private String id;
    private Double math;
    private Double english;
    private Double language;

    public Grade() {
    }
    public Grade(String id, Double math, Double english, Double language) {
        this.id = id;
        this.math = math;
        this.english = english;
        this.language = language;
    }

    public String getId() {
        return id;
    }
    public void setId(String id) {
        this.id = id;
    }

    public Double getMath() {
        return math;
    }
    public void setMath(Double math) {
        this.math = math;
    }

    public Double getEnglish() {
        return english;
    }
    public void setEnglish(Double english) {
        this.english = english;
    }

    public Double getLanguage() {
        return language;
    }
    public void setLanguage(Double language) {
        this.language = language;
    }

    public Double getAverage() {
        return (math + english + language) / 3.0;
    }
}
